//
//  ButtonView.m
//  ProductB
//
//  Created by 田阳 on 16/8/9.
//  Copyright © 2016年 田阳. All rights reserved.
//

#import "ButtonView.h"

@implementation ButtonView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, kScreenWidth / 5, kScreenWidth / 5)];
        [self addSubview:_imageV];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(5, kScreenWidth / 5, kScreenWidth / 5, 30)];
        _label.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_label];
    }
    return self;
}

@end
